package com.srit.recipes.dao;

import com.srit.recipes.common.parent.ParentDao;
import com.srit.recipes.entity.WeekRecipesDetail;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;
import java.util.List;

public interface WeekRecipesDetailDao extends ParentDao<WeekRecipesDetail, Integer> {


    List<WeekRecipesDetail> findAllByWeekRecipesId(int weekRecipesId);

    @Modifying
    @Transactional
    void deleteAllByWeekRecipesId(int recipesId);
}
